import java.util.Scanner;

public class JavaDemoScanner1 {
    public static void main (String[] args) {
        Scanner scanner = new Scanner(System.in); // 创建Scanner 对象
        System.out.println("Input Your Name:");
        String name = scanner.nextLine();   // 读取一行输入并且获取字符串
        System.out.println("Input Your Age:");
        int age = scanner.nextInt();

        System.out.printf("你的名字,%s,年龄,%d",name,age);


    }
}